Skip to content

Commit 1dea80a

Browse files
author
Luca Corti
committed
Update to draft 03, request-line -> request-target
1 parent 3afe802 commit 1dea80a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/src/main/java/net/adamcin/httpsig/api/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public final class Constants {
6565
*/
6666
public static final String KEY_ID = "keyId";
6767

68-
public static final String HEADER_REQUEST_LINE = "request-line";
68+
public static final String HEADER_REQUEST_LINE = "request-target";
6969

7070
public static final String HEADER_DATE = "date";
7171

api/src/main/java/net/adamcin/httpsig/api/RequestContent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public String toString() {
196196

197197
/**
198198
* @return the list of header names contained in this {@link RequestContent}, in the order in which they were added, except
199-
* for request-line, which is listed first if present
199+
* for request-target, which is listed first if present
200200
*/
201201
public List<String> getHeaderNames() {
202202
List<String> headerNames = new ArrayList<String>();
@@ -209,7 +209,7 @@ public List<String> getHeaderNames() {
209209

210210

211211
/**
212-
* @return the request-line if set
212+
* @return the request-target if set
213213
*/
214214
public String getRequestLine() {
215215
return requestLine;

0 commit comments

Comments
 (0)