Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Created March 21, 2014 02:37
Show Gist options
  • Save tarynsauer/9678395 to your computer and use it in GitHub Desktop.
Save tarynsauer/9678395 to your computer and use it in GitHub Desktop.
private String parseRequest() throws IOException {
String line = "";
StringBuilder stringBuilder = new StringBuilder();
while((line = clientRequest.readLine()) != null){
stringBuilder.append(line + "--break--");
if (line.equals("")) {
return stringBuilder.toString() + "--break--" + parseRequestBody();
}
}
return stringBuilder.toString() + "--break--" + parseRequestBody();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment