Giter Site home page Giter Site logo

can't create promise about commits.to HOT 4 CLOSED

bsoule avatar bsoule commented on July 18, 2024
can't create promise

from commits.to.

Comments (4)

bsoule avatar bsoule commented on July 18, 2024

/create-test-promise-2154 successfully creates a promise, but
/review-gmail-auth-PR-test still fails in the same manner as /review-gmail-auth-PR

could the bot-detection code have labelled me a bot because Slack tried to autofetch/prefetch those URLs after I initially typed them, but then no one clicked on them until hours later?

from commits.to.

dreeves avatar dreeves commented on July 18, 2024

ha, i figured it out. capital letters! we redirect to canonicalize the URL or something.

i'm actually in favor of solving this by doing no canonicalizing whatsoever. the urtext is exactly what the user typed -- completely case-sensitive and not trying to clean up any extra underscores or anything like that.

from commits.to.

dreeves avatar dreeves commented on July 18, 2024

Case-insensitivity is the default with the Express router but there's a setting to turn it off. One of these:

app.set('case sensitive routing', true)
router = express.Router({ caseSensitive: true })

I've also heard someone say you need to use regex-based routing instead of string-based routing to make case-sensitivity work. I doubt that's true but there may be other reasons to prefer regex-based routing anyway.

from commits.to.

chrisbutler avatar chrisbutler commented on July 18, 2024

@dreeves setting that case-insensitivity wouldn't work for our case... and trust me, it's worth lowercasing the urls, if we didn't you'd be filing an issue for it

you really want regex routing, eh? lol

from commits.to.

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.