-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed issue “json minify class is not thread safe, leads to errors on…
… heavy load” https://softinstigate.atlassian.net/browse/RH-233
- Loading branch information
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ | |
* @author Andrea Di Cesare {@literal <[email protected]>} | ||
*/ | ||
public class ResponseSenderHandler extends PipedHttpHandler { | ||
|
||
/** | ||
* @param next | ||
*/ | ||
|
@@ -95,7 +94,7 @@ public void handleRequest( | |
} | ||
} | ||
|
||
if (context.getRepresentationFormat() | ||
if (context.getRepresentationFormat() | ||
== RequestContext.REPRESENTATION_FORMAT.HAL) { | ||
exchange.getResponseHeaders().put( | ||
Headers.CONTENT_TYPE, Representation.HAL_JSON_MEDIA_TYPE); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters