Skip to content

Commit 3ca2d61

Browse files
committed
Fix after-POST handling of resource URL
HAL.normalizeUrl() in the response-headers-template is trying to normalize a URL after encoding it. This behavior causes forward slashes to get encoded into HTTP entities that URI.js can't read. This aptch removes the _.escape() wrapper around "value" and restores functionality.
1 parent 9f96c74 commit 3ca2d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h2>Response Headers</h2>
126126
<% _.each(headers, function(value, name) {
127127
%><%= _.escape(name) %>: <%
128128
if(HAL.isFollowableHeader(name)) {
129-
%><a href="<%= HAL.normalizeUrl(_.escape(value)) %>" class="follow"><%
129+
%><a href="<%= HAL.normalizeUrl(value) %>" class="follow"><%
130130
}
131131
%><%= _.escape(value)
132132
%><% if(HAL.isFollowableHeader(name)) {

0 commit comments

Comments
 (0)