mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
Merge pull request #3565 from tylershuster/eyre-response-code
eyre: send 'no content' status with no content
This commit is contained in:
commit
a37b728b86
@ -869,7 +869,7 @@
|
||||
?~ redirect
|
||||
%- handle-response
|
||||
:* %start
|
||||
:- status-code=200
|
||||
:- status-code=204
|
||||
^= headers
|
||||
:~ ['set-cookie' cookie-line]
|
||||
==
|
||||
@ -1308,7 +1308,7 @@
|
||||
=^ http-moves state
|
||||
%- handle-response
|
||||
:* %start
|
||||
[status-code=200 headers=~]
|
||||
[status-code=204 headers=~]
|
||||
data=~
|
||||
complete=%.y
|
||||
==
|
||||
|
@ -1110,7 +1110,7 @@
|
||||
card.i.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
!> put-200-response
|
||||
!> put-204-response
|
||||
!> i.t.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
@ -1210,7 +1210,7 @@
|
||||
card.i.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
!> put-200-response
|
||||
!> put-204-response
|
||||
!> i.t.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
@ -1313,7 +1313,7 @@
|
||||
card.i.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
!> put-200-response
|
||||
!> put-204-response
|
||||
!> i.t.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
@ -1463,7 +1463,7 @@
|
||||
card.i.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
!> put-200-response
|
||||
!> put-204-response
|
||||
!> i.t.moves
|
||||
== ==
|
||||
:: gall responds on the second subscription.
|
||||
@ -1682,7 +1682,7 @@
|
||||
[%leaf "wrong number of moves: {<(lent moves)>}"]~
|
||||
::
|
||||
%+ expect-eq
|
||||
!> put-200-response
|
||||
!> put-204-response
|
||||
!> i.moves
|
||||
==
|
||||
:: the client connection is detected to be broken
|
||||
@ -2206,7 +2206,7 @@
|
||||
card.i.t.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
!> put-200-response
|
||||
!> put-204-response
|
||||
!> i.t.t.moves
|
||||
::
|
||||
%+ expect-eq
|
||||
@ -2243,14 +2243,14 @@
|
||||
?~ data headers
|
||||
%+ weld headers
|
||||
['content-length' (crip ((d-co:co 1) p.u.data))]~
|
||||
:: produce the 200 response to a put request
|
||||
:: produce the 204 response to a put request
|
||||
::
|
||||
++ put-200-response
|
||||
++ put-204-response
|
||||
:* ~[/http-put-request]
|
||||
%give
|
||||
%response
|
||||
%start
|
||||
[200 ['set-cookie' cookie-string]~]
|
||||
[204 ['set-cookie' cookie-string]~]
|
||||
~
|
||||
%.y
|
||||
==
|
||||
|
Loading…
Reference in New Issue
Block a user