Comments (1)
The reason it doesn't work from your browser is probably that it sends an accept header something like:
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Whereas curl
(and presumably the Chrome extension) asks for:
Accept: */*
Stubb does not currently possess any proper content negotiation capabilities which would be necessary to accommodate the browser request, attempting to find one of the first three options, before settling for anything (*/*
). Stubb simply looks for the first option, so for the browser request it looks for a file ending in .html
.
I would be interested in seeing Stubb completed in this respect.
from stubb.
Related Issues (13)
- Add support for ERB/param insertion
- Reset request count on interrupt HOT 1
- Print path of response file used
- Add explanation of features and general usage
- Add guide for stub sets using Git
- Incorporate request method and accept header in counter HOT 1
- Define behavior for access to '/'
- Error running hello world example HOT 2
- Required Parameters Feature Suggestion HOT 2
- Adding stop command HOT 9
- Add configurable delay in frontmatter HOT 7
- Add autofill mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stubb.