Giter Club home page Giter Club logo

Comments (8)

trusche avatar trusche commented on August 21, 2024

Hi @Qwertyn, would you mind giving the master branch a try? I believe I've finally fixed this issue, at least for POST data, but it's possible it would crop up somewhere else - please let me know if you still encounter it with this version.

from httplog.

trusche avatar trusche commented on August 21, 2024

I've published v0.2.15 which should fix this at the cost of no longer unescaping URI-encoded data.

from httplog.

Qwertyn avatar Qwertyn commented on August 21, 2024

I tried master branch.
Error is reproduced.
The thing is that these characters are found in a response.
Response is handled by log_body:

# httplog/lib/httplog/http_log.rb 
module HttpLog
  ...
  class << self
    ...
    def log_body(body, encoding = nil)
      ...
        else
          log("Response:\n#{body.to_s.force_encoding('UTF-8')}")  # <<<<  It helped me
        end
      end
    end
  end
end

Even better, in my opinion, do it all in one place

def log(msg)
  # here

from httplog.

Qwertyn avatar Qwertyn commented on August 21, 2024

@trusche, Say what?
#29 - in my opinion, also a good solution

from httplog.

trusche avatar trusche commented on August 21, 2024

Yep, I'm combining yours with his, hopefully that'll do it. Thanks for your patience.

from httplog.

Qwertyn avatar Qwertyn commented on August 21, 2024

👍 Thanks!
We are waiting for version update on rubygems :-)

from httplog.

coderberry avatar coderberry commented on August 21, 2024

👍

from httplog.

trusche avatar trusche commented on August 21, 2024

@cavneb just to be sure - are you saying you're still encountering this issue? Or that you like the fix? :)

from httplog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.