underyx / flask-redis

A Flask extension for using Redis
Other
436 stars 71 forks source link

There's a way to set default chatset for connection? #44

Closed filipecmedeiros closed 5 years ago

filipecmedeiros commented 5 years ago

I'm receiving bytes instead string from my requests. There's a way to set this or must I parse directly in my code?

underyx commented 5 years ago

Hey there! There is no way to change this and you will always need to parse in your code. This is an intentional design decision in the underlying redis-py library, as the data read from the network connection is always bytes, and it would be unwise to make assumptions about the kind of content in that byte-stream. Hope that answers your question!

filipecmedeiros commented 5 years ago

Thank you for quickly answer! It indeed answered my question...