GithubHelp home page GithubHelp logo

Comments (3)

ruven avatar ruven commented on July 17, 2024

Thanks for this. I've updated the documentation on the website and in the README regarding NginX.

I've also uploaded a fix based on yours, which is slightly simpler and which keeps the const assignment to request_string and which avoids creating a separate http_if_modified_since string.

from iipsrv.

brianhelba avatar brianhelba commented on July 17, 2024

@ruven , thanks for the quick response to this.

The reason I created a separate "http_if_modified_since" string variable is to avoid doing a map lookup twice. The performance cost of a string copy is much less than that of a map lookup. Further, if you saw my second commit, brianhelba@2d7592b , it's probably better to check whether the "HTTP_IF_MODIFIED_SINCE" parameter is empty, rather than just checking to see whether it exists at all, which is only possible by looking inside the string. Also, creating a string reference won't work, as it has the side effect of inserting "http_if_modified_since" into the map, which breaks later sections of code.

Finally, while I'm happy to see IIP server being improved, I'd also like to be credited for the code that I write. If you need to modify a pull request, it would be nice if you added a patch of your own on top, instead of copy-pasting portions of else's code and committing it with you listed as the Git author. Alternatively, you can comment on the PR and give the author a chance to modify their own work. It's not a huge problem for a small patch like this, but I'd hope that if I submit larger fixes in the future, you will do the courtesy of ensuring that contributors are credited with Git authorship.

from iipsrv.

ruven avatar ruven commented on July 17, 2024

Sorry Brian, I did thank and reference you in the commit, but it's true it, in effect, stripped your git author tag.

You're right about the side-effect of inserting an empty "http_if_modified_since" into the map. If you want to resubmit an update of your memcached patch, I'll be happy to merge that directly.

from iipsrv.

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.