Skip to content

Commit 5adbc14

Browse files
authored
Use Accept instead of Content-Type for requests
1 parent 95aef0a commit 5adbc14

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ The browser responds to the session start by selecting a compatible signature al
154154
POST /securesession/startsession HTTP/1.1
155155
Host: auth.example.com
156156
Accept: application/json
157-
Content-Type: application/json
158-
Content-Length: nn
159157
Cookie: whatever_cookies_apply_to_this_request=value;
160158
Sec-Session-Response: registration JWT
161159
@@ -250,8 +248,7 @@ The browser refreshes the short-term session credential by calling the session e
250248
```http
251249
POST /securesession/refresh HTTP/1.1
252250
Host: auth.example.com
253-
Content-Type: application/json
254-
Content-Length: nn
251+
Accept: application/json
255252
Cookie: whatever_cookies_apply_to_this_request=value;
256253
Sec-Session-Id: session_id
257254
```
@@ -381,4 +378,4 @@ promise.catch((...) => {
381378
// not reachable, or broke protocol.
382379
<error handling>
383380
});
384-
```
381+
```

0 commit comments

Comments
 (0)