GithubHelp home page GithubHelp logo

Comments (10)

ramv avatar ramv commented on August 25, 2024

hmm .. did you close my pull request?

from node-oauth.

ciaranj avatar ciaranj commented on August 25, 2024

Not intentionally!

from node-oauth.

ciaranj avatar ciaranj commented on August 25, 2024

I don't understand this fix ? How does it help with PUT and DELETE ? What are you passing through to signURL ?

from node-oauth.

ramv avatar ramv commented on August 25, 2024

forgot add one more diff

296,298c268
<   
<     request.socket.addListener("error",callback);
<     if( method == "POST" && post_body != null && post_body != "" ) {
---
>     if(post_body != null && post_body != "" ) {

321c291

By removing the check for POST, I could get PUT and DELETE to work

from node-oauth.

ciaranj avatar ciaranj commented on August 25, 2024

OK that makes more sense, but I suspect it should say

if( (method == "POST" || method == "PUT) && post_body !=null && post_body != "" ) { 

As I understand it the DELETE verb doesn't define any 'enclosed entity' ?

from node-oauth.

ramv avatar ramv commented on August 25, 2024

you are correct.

from node-oauth.

ciaranj avatar ciaranj commented on August 25, 2024

Adds support for PUT & DELETE verbs. Closed by fd2fad5

from node-oauth.

ciaranj avatar ciaranj commented on August 25, 2024

Hi ramv, does this satisfy your requirements ?

from node-oauth.

ramv avatar ramv commented on August 25, 2024

Yes it does. Sorry I thought I responded.

from node-oauth.

jerryjj avatar jerryjj commented on August 25, 2024

Shouldn't this fix be copied to oauth2 _request -method also?

from node-oauth.

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.