aneek / rate_limiter

Enables a rate limiting feature on each service request.
4 stars 2 forks source link

Doesnt work for post request #2

Open flyinggman opened 7 years ago

flyinggman commented 7 years ago

API Post method in drupal doesnt require the accept header, and it doesnt have the _format in the path, i.e. in my case the path is: http://localhost/entity/node

Which means that the rate limiter wont kick in.

In my header I have:

Would it be possible to also include these 2 on top of the "Accept header" so that the rate limiter kicks in when it sees any (Accept, or, Content-Type, or, Authorization) of these 3 indicators?

aneek commented 7 years ago

@flyinggman Please check my comment on D.O https://www.drupal.org/node/2920325#comment-12324400