zephyr/include
Arvin Farahmand 6d5f3debaa net: http_client: Fix payload issue on HTTP upload
Bug fix and improved `payload` handling in `http_client_req`.

Changes to `http_client_req` behaviour:

If the user provides `payload_len` it is used to generate the
`Content-Length` header. This is done even if `payload_cb` is used to
provide the actual data. If no `payload_len` is specified then no
`Content-Length` is generated.

If `payload_cb` is provided it is called to send the payload data.
Otherwise `payload` is used as the payload buffer and sent. If
`payload_len` is not zero, it is used as the size of `payload`.
Otherwise `payload` is assumed to be a string and `strlen` is used to
determine its size. This is to maintain current behaviour and not break
existing samples.

Fixes #24431

Signed-off-by: Arvin Farahmand <arvinf@ip-logix.com>
2020-04-21 00:05:04 +03:00
..
app_memory
arch arch: arm: aarch32: Rework non-Cortex-M exception handling 2020-04-20 18:22:46 +02:00
audio
bluetooth Bluetooth: hci_raw: Move buffer management to common place 2020-04-20 21:59:47 +03:00
canbus
cmsis_rtos_v1
cmsis_rtos_v2
console
crypto
data
debug
devicetree
dfu
disk
display
drivers Bluetooth: HCI: Add helpers to create events 2020-04-20 21:59:47 +03:00
dt-bindings include: bindings: dma define the bindings for stm32 soc series 2020-04-17 03:13:02 -05:00
fs
linker shell: Add dedicated section for shell instances 2020-04-17 11:34:01 +02:00
logging
mgmt mgmt: smp: add UDP transport for SMP 2020-04-17 10:16:25 +03:00
net net: http_client: Fix payload issue on HTTP upload 2020-04-21 00:05:04 +03:00
posix lib: posix: clock: Turn clock_gettime into system call 2020-04-17 08:08:37 -04:00
power
random
settings
shell shell: Add shell_set_root_cmd function 2020-04-17 11:34:01 +02:00
stats
storage
sys include: util.h: add extern "C" 2020-04-20 15:46:00 +02:00
toolchain
tracing
usb
zephyr
cache.h
device.h
devicetree.h devicetree: add DT_PARENT() 2020-04-15 08:27:18 -05:00
exc_handle.h
fatal.h
generated_dts_board.h
init.h
irq_nextlevel.h
irq_offload.h
irq.h irq: Remove return value from IRQ_CONNECT and IRQ_DIRECT_CONNECT 2020-04-17 13:19:07 -05:00
kernel_includes.h kernel: Add k_mem_pool compatibility layer on top of k_heap 2020-04-14 10:05:55 -07:00
kernel_structs.h
kernel_version.h
kernel.h kernel: Add k_mem_pool compatibility layer on top of k_heap 2020-04-14 10:05:55 -07:00
mempool_heap.h kernel: Add k_mem_pool compatibility layer on top of k_heap 2020-04-14 10:05:55 -07:00
mempool_sys.h
ptp_clock.h
sched_priq.h
shared_irq.h
spinlock.h
sw_isr_table.h sw_isr_table.h: fix __COUNTER__ usage 2020-04-17 18:28:37 +02:00
sys_clock.h
syscall_handler.h
syscall.h
timeout_q.h
toolchain.h
wait_q.h
zephyr.h