Baseflow / Baseflow/flutter_cached_network_image

403 when trying to fetch image from S3 with trailing spaces

Open
#277 4 comments 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Dart
Stars
2.6k
Forks
731
Avg merge
3d 9h
Merged PRs (30d)
1

Description

I have the following URL: `https://s3.amazonaws.com/sscatalogo/softsite2qualidade/001.png ` (note the trailing space).

When I access this URL via Firefox, I got the image with no problem. When I access the URL via CURL, even with the trailing space, I still got the image with no problem. I put the trailing space inside the URL string like this:

curl -o a 'https://s3.amazonaws.com/sscatalogo/softsite2qualidade/001.png ' -v i

But, when I've tried to access this URL via `CachedNetworkImage`, I didn't got the image. It worked once I've `.trim()`ed the URL via dart.

Shouldn't Flutter Cached Network Image behave just like CURL?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.