Git Product home page Git Product logo

Comments (10)

chenkie avatar chenkie commented on June 19, 2024

Thanks, this will be in the next release coming up shortly :)

from angular2-jwt.

chenkie avatar chenkie commented on June 19, 2024

This hasn't landed yet, but is on the way.

from angular2-jwt.

NickLarsenNZ avatar NickLarsenNZ commented on June 19, 2024

How soon might this be implemented? Currently my requests are sent out with Content-Type: text/plain, while the REST service is expecting application/json.

I imagine it could be something added to the new AuthHttp({...}) constructor, so it's setup once.

Do you accept pull requests? I could give it a shot.

from angular2-jwt.

NickLarsenNZ avatar NickLarsenNZ commented on June 19, 2024

I've just submitted a pull request, allowing custom headers.

from angular2-jwt.

escardin avatar escardin commented on June 19, 2024

You need to be able to set headers on the fly, not during setup. I suppose I could rework my fork and submit a pr with code I've already written to do this.

from angular2-jwt.

chenkie avatar chenkie commented on June 19, 2024

I was thinking that too, but it would be useful to have both options.

from angular2-jwt.

louisscruz avatar louisscruz commented on June 19, 2024

Is there any progress on this? Any work around for those of us who need to change this? I, like Nick, have a backend expecting application/json.

from angular2-jwt.

chenkie avatar chenkie commented on June 19, 2024

Hey @louisscruz , the changes to make it work have been committed here and I'll aim to release after some more tests tomorrow.

from angular2-jwt.

escardin avatar escardin commented on June 19, 2024

You can always tell npm to load the tarball from github, or the repo itself (assuming you are using git)

from angular2-jwt.

chenkie avatar chenkie commented on June 19, 2024

v0.1.4 now published

from angular2-jwt.

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.