Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
replace comes from regex
Browse files Browse the repository at this point in the history
  • Loading branch information
yhahn committed May 28, 2014
1 parent a66db39 commit 9441672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/text/glyph_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <llmr/util/pbf.hpp>
#include <llmr/platform/platform.hpp>
#include <uv.h>
#include <regex>

namespace llmr {

Expand All @@ -27,7 +28,7 @@ GlyphPBF::GlyphPBF(const std::string &fontStack, GlyphRange glyphRange)
std::string url = util::sprintf<255>("http://mapbox.s3.amazonaws.com/gl-glyphs/%s/%d-%d.pbf", fontStack.c_str(), glyphRange.first, glyphRange.second);

// TODO: Find more reliable URL normalization function
// std::replace(url.begin(), url.end(), ' ', '+');
std::replace(url.begin(), url.end(), ' ', '+');

platform::request_http(url, [&](platform::Response *res) {
if (res->code != 200) {
Expand Down

0 comments on commit 9441672

Please sign in to comment.