Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
do not use decode utf-8 for request body
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcaricio committed Oct 31, 2012
1 parent 814941b commit 0bf6508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tapioca/rest_api.py
Expand Up @@ -111,7 +111,7 @@ def get_content_type_for_extension(self, extension):

def load_data(self):
content_type = self.get_content_type_based_on('Content-Type')
data_as_string = self.request.body.decode('utf-8')
data_as_string = self.request.body
data = self.get_encoder_for(content_type).decode(data_as_string)
return data

Expand Down

0 comments on commit 0bf6508

Please sign in to comment.