Commit 3cdcb35
authored
feat: allow specifying content-type for
Given that the `/base64/{data}` (and `/base64/decode/{data}`) endpoint
allows decoding arbitrary data, I think it makes sense to allow the
client to also specify the `Content-Type` of that data while maintaining
`text/plain` as the safe default.
See conversation starting here[1]
for context and motivation for this change.
[1] #141 (comment)/base64 responses (#198)1 parent ce8d747 commit 3cdcb35
File tree
4 files changed
+26
-8
lines changed- httpbin
- static
4 files changed
+26
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1081 | 1085 | | |
1082 | 1086 | | |
1083 | 1087 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2868 | 2868 | | |
2869 | 2869 | | |
2870 | 2870 | | |
2871 | | - | |
2872 | | - | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
2873 | 2874 | | |
2874 | 2875 | | |
2875 | 2876 | | |
2876 | 2877 | | |
| 2878 | + | |
2877 | 2879 | | |
2878 | 2880 | | |
2879 | 2881 | | |
2880 | 2882 | | |
| 2883 | + | |
2881 | 2884 | | |
2882 | 2885 | | |
2883 | 2886 | | |
2884 | 2887 | | |
| 2888 | + | |
2885 | 2889 | | |
2886 | 2890 | | |
2887 | 2891 | | |
2888 | 2892 | | |
2889 | 2893 | | |
2890 | 2894 | | |
| 2895 | + | |
2891 | 2896 | | |
2892 | 2897 | | |
2893 | 2898 | | |
2894 | 2899 | | |
2895 | 2900 | | |
2896 | 2901 | | |
| 2902 | + | |
2897 | 2903 | | |
2898 | 2904 | | |
2899 | 2905 | | |
2900 | 2906 | | |
2901 | 2907 | | |
2902 | 2908 | | |
2903 | 2909 | | |
| 2910 | + | |
2904 | 2911 | | |
2905 | 2912 | | |
2906 | 2913 | | |
2907 | 2914 | | |
2908 | 2915 | | |
2909 | 2916 | | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
2910 | 2924 | | |
2911 | 2925 | | |
2912 | 2926 | | |
| |||
2918 | 2932 | | |
2919 | 2933 | | |
2920 | 2934 | | |
2921 | | - | |
| 2935 | + | |
2922 | 2936 | | |
2923 | 2937 | | |
2924 | 2938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
0 commit comments