Comments (1)
@g123k AFAIR the user-agent is used by the OFF server for stats, so any change would have an impact on the server stats, cc @stephanegigandet
IMHO the easiest solution would be not to force the user-agent when used in web mode. I assume that the browser user-agent will overwrite that void, which would be a relatively relevant approximation for the OFF server. Or it will be kept null, which would also solve the current issue.
Btw we can easily detect "web" usage, we already do with code like that - we consider the "js" version as "web":
import 'uri_reader_stub.dart'
if (dart.library.io) 'uri_reader_io.dart'
if (dart.library.js) 'uri_reader_js.dart';
Just my 2 cents.
from openfoodfacts-dart.
Related Issues (20)
- Get a localized list of countries HOT 4
- Add field "uploaded timestamp" for "raw" images
- Add support for the upcoming user info API HOT 4
- Add "expiration_date" product field
- We should be more forgiving on unexpected types, format changes in the knowledge panel API. HOT 1
- Add "% DV" and "IU" as unit
- Know when to suggest "% DV" and "IU" as unit
- Allow to change host for product search HOT 7
- Nutrients should accept a String HOT 5
- Unit tests failing because of the "new" cookie
- Support field KnowledgePanelImageElement.link_url
- Currency for country table
- Why are we still referencing v0 ? HOT 3
- Add missing ADDITIVES_TAGS_IN_LANGUAGES and ALLERGENS_TAGS_IN_LANGUAGES HOT 2
- Missing suggestions with autocomplete (= `Häagen-Dazs` case) HOT 2
- Prices/Location: add countrycode field. HOT 1
- Respect rate-limits during integration tests HOT 4
- Price proof: link a date, location & currency HOT 9
- Sending null from the SDK?
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 openfoodfacts-dart.