Giter Club home page Giter Club logo

Comments (5)

wagenet avatar wagenet commented on August 23, 2024

Not sure how this would cause a problem. Unless I'm missing something, I'm using urls of that type without difficulty.

from abbot.

enquora avatar enquora commented on August 23, 2024

Currently, the code to load the Sproutcore index.html file over-rides any attempt to proxy URLs with just a single slash in them. This is a regression.

The use of a complex regex makes this non-obvious on first reading.

from abbot.

wagenet avatar wagenet commented on August 23, 2024

enquora, you're saying you want to do proxy '/', :to => 'http://example.com'? Are you sure that behavior was ever explicitly supported? Or did it just work by accident?

from abbot.

enquora avatar enquora commented on August 23, 2024

Attempting to proxy /something?x=yada returns the SC index.html page. I don't see how we can easily set up a test case for this since it requires an active server.
Couchdb users, for instance, will find that they cannot load individual documents using a REST api.

Please look at the code in rack.builder.rb -> normalize_url() and rack.service.rb

This behaviour must work if a functioning proxy is to be provided, irrespective of whether it previously worked or not. And it did.

This actually highlights the critical need for integration tests, which I'm considering.

from abbot.

wagenet avatar wagenet commented on August 23, 2024

I have not heard any other complaints or concerns about this and I'm still not sure exactly what the issue is. If this is still an issue, please give me your specific Buildfile proxy setting and an example of the url you would like to call. This way I can easily test and reproduce the issue.

from abbot.

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.